<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>小黑 - xiaohei.me</title>
</head>
<body>

<?php
include dirname(__FILE__) . '/conf.php';
include SERVER_ROOT . 'public/ip.php';

$clientip = getclientip();
$ip_area = convertip($clientip);
$longip = bindec(decbin(ip2long($clientip)));
$time = date('Y-m-d H:i:s');

$db = db_xiaohei();
$sql = "insert into access_ip (ip, area, addtime) values({$longip}, '{$ip_area}', '{$time}')";
$db->query($sql);
?>

<div style="width:100%; text-align: center; margin-top: 10px;">

<iframe width="400" height="550" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=1&isFans=0&uid=1346818450&verifier=1bf42c7d&dpc=1"></iframe>

</div>

</body>
</html>